<?php
require_once '../libs/app.config.php';
session_start();
if($_SESSION['LoginId'] == false){
	header("Location:login.php");
}
    ini_set ('memory_limit','128M');
	$upload = new UPImages("","","","");

if($_POST['submit']){

	 $update=array("password"=>md5($pwd1));
	 $where="id='".$_SESSION['LoginId']."'";
	 $result=$tpm->update("admin_user",$update,$where);
	 if($result>0)
	 echo "<script>alert('修改成功');location.href=('outLogin.php');</script>";

}

require_once(INCLUDE_PATH.'template.inc.php');  //模板类及对象$tpl的加载
$tpl->assign("list",$list);
$tpl->assign("id",$id);
$tpl->assign("advcat",$advcat);
$tpl->display("change_pwd.html");
?>

